$(document).ready(function() {
	
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");

    });

    // Collapse Panel
    $("#close").click(function () {
        $("div#panel").slideUp("slow");
    });	
    // Expand Panel
    $("#useropen").click(function () {
        $("div#panel").slideDown("slow");

    });
    $("#userclose").click(function () {
        $("div#panel").slideUp("slow");

    });		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
    });
    $("#usertoggle a").click(function () {
       $("#usertoggle a").toggle();
    });

});
function fn() {
    WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('btnSubmit', '', true, '', '', false, false));
} 